test: my_test_spi.o spi_tx_rx.o  w5500.o socket.o w5500_set.o
	arm-none-linux-gnueabihf-g++ -g -o test my_test_spi.o spi_tx_rx.o  w5500.o socket.o w5500_set.o
my_test_spi.o: my_test_spi.cpp
	arm-none-linux-gnueabihf-g++ -g -c my_test_spi.cpp
spi_tx_rx.o: spi_tx_rx.cpp
	arm-none-linux-gnueabihf-g++ -g -c spi_tx_rx.cpp
socket.o: socket.cpp
	arm-none-linux-gnueabihf-g++ -g -c socket.cpp
w5500.o: w5500.cpp
	arm-none-linux-gnueabihf-g++ -g -c w5500.cpp
w5500_set.o: w5500.cpp
	arm-none-linux-gnueabihf-g++ -g -c w5500_set.cpp

clean:
	rm *.o
	rm test
	# arm-none-linux-gnueabihf-g++ my_test_spi.cpp socket.cpp spi_tx_rx.cpp w5500.cpp w5500_set.cpp -o test